import request from '@/utils/request';

export async function getBopInfoByPage(params: any) {
  return request('/api/design/getBopInfoByPage', {
    method: 'POST',
    data: params,
  });
}

export async function addBopInfo(params: any) {
  return request('/api/design/addBopInfo', {
    method: 'POST',
    data: params,
  });
}

export async function updateBopInfo(params: any) {
  return request('/api/design/updateBopInfo', {
    method: 'POST',
    data: params,
  });
}

export async function delBopInfo(params: any) {
  return request('/api/design/delBopInfo', {
    method: 'POST',
    data: params,
  });
}

export async function exportBopInfo(params: any) {
  return request('/api/design/exportBopInfo', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getBopInfoByPage, addBopInfo, updateBopInfo, delBopInfo, exportBopInfo };
